<%--
    Document   : popuptemplate
    Created on : Jun 4, 2012, 2:47:19 PM
    Author     : ems
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>

        <script type="text/javascript" language="javascript" src="../scripts/jQuery/datetimepicker.js"></script>
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/>
    </head>
    <script type="text/javascript">
        var open_cur = 0;
        if (typeof jQuery == 'undefined') {
            // window.location.href="accessdenied.jsp";
        } 
        $j = jQuery.noConflict();
        $j(document).ready(function(){

         

        });
    </script>
    <style type="text/css">
        .divbutton{
            float: right;
            display: none;
        }


    </style>
    <f:view>
        <h:form>

            <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
          
                   
            <div class="popup" style="height:150px; width:350px">
                <div class="popup-header">
                    <div class="title"><h:outputText value="Thông báo"/></div>
                </div>
                <div class="popup-content">
                    <div class="main_content" style="padding:20px 84px">
                        <font style="font-weight:bold;margin-left: 35px;">
                        <h:outputText  value="Are you sure ?"/>
                        </font>



                    </div>
                </div>
                <div class="popup-footer">

                    <div class="buttonsave" style="float: right;margin-right: 87px;" onclick="parent.jQuery.fancybox.close(); "  ><span style="margin-right: 25px;"><h:outputText value="NO"/></span></div>

                    <div class="divbutton" style="display: block">
                        <h:inputHidden value="#{c575Controller.PC575}"/>
                        <h:inputHidden value="#{c575Controller.CV580}"/>
                        <h:inputHidden value="#{c575Controller.FN100}"/>
                        <a4j:commandButton  action="#{c575Controller.saveOnchangeFn100}" styleClass="buttonsave" value="YES">

                        </a4j:commandButton>
                    </div>

                </div>
            </div>

        </h:form>
    </f:view>
</html>
<script type="text/javascript">
    $j(document).ready(function(){
        yhight = ($j('.popup').height()-90)+"px" ;
        $j('.main_content').css('height',yhight );
        $j('.popup-content').css('height',yhight );
    });
</script>